package com.qianfeng.smartdevice.mapper;

import com.qianfeng.smartdevice.pojo.SysDevice;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

/**
 * @time: 2022-03-22 19:02
 */


public interface SysDeviceMapper {

    @Insert("INSERT INTO sys_device (device_id,device_name,categy_id,bind_user_id,scene_id,bind_time) values (#{deviceId},#{deviceName},#{categyId},#{bindUserId},#{sceneId},#{bindTime})")
    void addSysDevice(SysDevice device);

    @Select("select * from sys_device where device_id=#{deviceId}")
    SysDevice findById(String deviceId);
}
